#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QWebSocket>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
private:
    QWebSocket *ws ;

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:


    void on_btn_connect_clicked();

    void on_btn_send_clicked();

    void on_ws_disconnect();

    void on_ws_error(QAbstractSocket::SocketError err );
    void on_ws_receiver(QString message);

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
